package com.zhuiYun.project.api.sysUser.service.impl;

import com.zhuiYun.project.api.sysUser.entiy.SysUser;
import com.zhuiYun.project.api.sysUser.entiy.User;
import com.zhuiYun.project.api.sysUser.mapper.UserMapper;
import com.zhuiYun.project.api.sysUser.service.UserService;
import com.zhuiYun.project.common.response.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
@Slf4j
public class UserServiceImpl implements UserService {

        @Autowired
    UserMapper userMapper;
        
    

        
        /**
         * @Author 小江
         * @Description //TODO 根据用户id获取门户user用户信息
         * @Date 10:48 2023/4/26
         **/
    @Override
    public CommonResult getUserById(Integer id) {
        User user = userMapper.selectByPrimaryKey(id);
        return CommonResult.ok(user);
    }
}
